import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "个人技术分享",
  description: "平时自己学习的日记",
  head: [["link", { rel: "icon", href: "/images/logoA.svg" }]],
  themeConfig: {
	  // 设置搜索框的样式
	      search: {
	        provider: "local",
	        options: {
	          translations: {
	            button: {
	              buttonText: "搜索文档",
	              buttonAriaLabel: "搜索文档",
	            },
	            modal: {
	              noResultsText: "无法找到相关结果",
	              resetButtonTitle: "清除查询条件",
	              footer: {
	                selectText: "选择",
	                navigateText: "切换",
	              },
	            },
	          },
	        },
	      },
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: '案例', link: '/markdown-examples' }
    ],

    sidebar: [
      {
        text: 'Examples',
        items: [
          { text: 'Markdown 案例', link: '/markdown-examples' },
          { text: '运行 API案例', link: '/api-examples' },
		  { text: 'EleAdminPlus 文档', link: '/api-eleAdminPlus' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/www.binbin520.cn' }
    ]
  }
})
